﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Logging;

namespace PMS.ENT
{
    public class LogENT : LogEntry
    {
        public static string _Table = "Logs";

        #region Properties
        public int LogID { get; set; }
        public int? LoginID { get; set; }
        public int? RoleID { get; set; }
        public int? EventID { get; set; }
        public DateTime? Timestamp { get; set; }
        public string Content { get; set; }
        #endregion

        public LogENT()
        {
            Timestamp = DateTime.Now;
        }

        public LogENT(int loginID, int? roleID, string content)
        {
            this.LoginID = loginID;
            this.RoleID = roleID;
            this.Content = content;
            this.Timestamp = DateTime.Now;
        }
    }

    public enum LogColumns
    {
        LogID,
        LoginID,
        RoleID,
        EventID,
        Timestamp,
        Content
    }
}
